home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / glimpse-2.1 / libtemplate / include / time_it.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-16  |  2.9 KB  |  74 lines

  1. /*
  2.  *  time_it.h
  3.  *
  4.  *  $Id: time_it.h,v 1.5 1995/01/10 16:30:25 hardy Exp $
  5.  *
  6.  *  ----------------------------------------------------------------------
  7.  *  Copyright (c) 1994, 1995.  All rights reserved.
  8.  *  
  9.  *          Mic Bowman of Transarc Corporation.
  10.  *          Peter Danzig of the University of Southern California.
  11.  *          Darren R. Hardy of the University of Colorado at Boulder.
  12.  *          Udi Manber of the University of Arizona.
  13.  *          Michael F. Schwartz of the University of Colorado at Boulder. 
  14.  *  
  15.  *  This copyright notice applies to all code in Harvest other than
  16.  *  subsystems developed elsewhere, which contain other copyright notices
  17.  *  in their source text.
  18.  *  
  19.  *  The Harvest software was developed by the Internet Research Task
  20.  *  Force Research Group on Resource Discovery (IRTF-RD).  The Harvest
  21.  *  software may be used for academic, research, government, and internal
  22.  *  business purposes without charge.  If you wish to sell or distribute
  23.  *  the Harvest software to commercial clients or partners, you must
  24.  *  license the software.  See
  25.  *  http://harvest.cs.colorado.edu/harvest/copyright,licensing.html#licensing.
  26.  *  
  27.  *  The Harvest software is provided ``as is'', without express or
  28.  *  implied warranty, and with no support nor obligation to assist in its
  29.  *  use, correction, modification or enhancement.  We assume no liability
  30.  *  with respect to the infringement of copyrights, trade secrets, or any
  31.  *  patents, and are not responsible for consequential damages.  Proper
  32.  *  use of the Harvest software is entirely the responsibility of the user.
  33.  *  
  34.  *  For those who are using Harvest for non-commercial purposes, you may
  35.  *  make derivative works, subject to the following constraints:
  36.  *  
  37.  *  - You must include the above copyright notice and these accompanying 
  38.  *    paragraphs in all forms of derivative works, and any documentation 
  39.  *    and other materials related to such distribution and use acknowledge 
  40.  *    that the software was developed at the above institutions.
  41.  *  
  42.  *  - You must notify IRTF-RD regarding your distribution of the 
  43.  *    derivative work.
  44.  *  
  45.  *  - You must clearly notify users that your are distributing a modified 
  46.  *    version and not the original Harvest software.
  47.  *  
  48.  *  - Any derivative product is also subject to the restrictions of the 
  49.  *    copyright, including distribution and use limitations.
  50.  */
  51. #ifndef _TIME_IT_H_
  52. #define _TIME_IT_H_
  53.  
  54. /*Automatically include timer.h only if not previously included. */
  55.  
  56.  
  57. /*Simple structure to track blocked processes in an OS. */
  58. typedef struct timer_record {
  59.     int eventnum;        /*Tracks the order of items enqueued. */
  60.     int time_in_secs;    /*Non-cumulative time in seconds for process to 
  61.                    remain blocked in queue. */
  62.     int (*ProctoCall) ();    /*A pointer to the blocked procedure. */
  63. } Time_Node;
  64.  
  65. void InitTimer();
  66. int SetTimer();
  67. Boolean CancelTimer();
  68. void HandleTimerSignal();
  69. void Freeze();
  70. void Thaw();
  71. void DisplayQueue();
  72.  
  73. #endif
  74.